package com.rustic.server.vo;

import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.rustic.server.po.NationalityDictionary;


/**
 * 表[nationality_dictionary]对应VO类
 *
 * @author auto
 */

@Data
public class NationalityDictionaryVO {

    /**
     * id
     */
    @ApiModelProperty(value = "id", dataType = "int")
    private int id;

    /**
     * 国家代码(三位)
     */
    @ApiModelProperty(value = "国家代码(三位)", dataType = "String")
    private String code;

    /**
     * 国家代码(两位)
     */
    @ApiModelProperty(value = "国家代码(两位)", dataType = "String")
    private String codeSimple;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", dataType = "String")
    private String name;

    /**
     * 名称(英文)
     */
    @ApiModelProperty(value = "名称(英文)", dataType = "String")
    private String nameEn;

    /**
     * 手机区号
     */
    @ApiModelProperty(value = "手机区号", dataType = "String")
    private String mobilePrefix;

    /**
     * 排序权重
     */
    @ApiModelProperty(value = "排序权重", dataType = "int")
    private int sort;

    public NationalityDictionaryVO(NationalityDictionary nationalityDictionary) {
        if (nationalityDictionary != null) {
            BeanUtil.copyProperties(nationalityDictionary, this);
        }
    }
}
